import json


async def main(ob, args):
    if args == 'me':
        data = ob.data
    elif args == 'here':
        location = ob.data.get('location', None)
        if not location or location not in ob.m.spaces:
            await ob.m.tell_user(ob, 'Your location cannot be detected.\n')
            return False
        data = ob.m.spaces[location]
    else:
        await ob.m.tell_user(ob, 'data me|here\n')
        return False

    msg = json.dumps(data, indent=4, sort_keys=False) + '\n'
    await ob.m.tell_user(ob, msg) 

    return True
